#include "MBException.h"

using std::string;

/**
  *	Constructs a new MBException object
  *
  * @param message message of the exception with informational text about the happened error
  */
MBException::MBException( const string &message )
{
	mMessage = message;
}

/**
  *	Returns the message of the exception with informational text about the happened error
  *
  * @return const pointer to the char array containing informational text about the happened error
  */
const char *MBException::what() const
{
	return mMessage.c_str();;
}